//引入vue 
import Vue from 'vue'
 //引入router
import VueRouter from 'vue-router'
 import Find from '../view/find'
 import My from '../view/my'
 import Part from '../view/part'
 //使用
Vue.use(VueRouter)
 //创建router 实例
const router = new VueRouter({
  routes: [
    {
      path: '/find',
      component: Find
    },
    {
      path: '/my',
      component: My
     }, {
      path: '/part',
      component: Part
     }
   ]
})
 //导出
 export default router